<template>
	<view class="mainpadding">
		<u-parse :content="dataAll.content"></u-parse>
	</view>
</template>

<script>
	const httpRequest = require("@/common/httpRequest.js")
	export default {
		data() {
			return {
				listid:"",
				dataAll:{},
				type:1,
			}
		},
		onLoad(options) {
			this.listid = options.id
			this.type = options.type
			this.getdetail()
			
		},
		methods: {
			getdetail(){
				let url = "/api/index/xttzDetail"
				if(this.type==2){
					url = "/api/index/noticeDetail"
				}
				httpRequest.request(url,'GET',{
					id:this.listid
				}).then(res => {
					this.dataAll = res.data
				})
			}
		}
	}
</script>

<style>

</style>
